print("Enter a username") |
for x in range(len(usernamelist)): |
break |
i = input() |
usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
print("Username exists") |
if usernamelist[x][0] == i: |
print("Enter a username") |
for x in range(len(usernamelist)): |
        break |
i = input() |
usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
        print("Username exists") |
    if usernamelist[x][0] == i: |
1 | usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
2 | print("Enter a username") |
3 | i = input() |
4 | for x in range(len(usernamelist)): |
5 |     if usernamelist[x][0] == i: |
6 |         print("Username exists") |
7 |         break |
8 |   |
exit() |
print("Enter a username") |
print("Valid Login") |
while True: |
if usernamelist[x][0] == i and usernamelist[x][1] == p: |
p = input() |
print("Enter a password") |
usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
for x in range(len(usernamelist)): |
print("Invalid, please try again") |
i = input() |
            exit() |
    print("Enter a username") |
            print("Valid Login") |
while True: |
        if usernamelist[x][0] == i and usernamelist[x][1] == p: |
    p = input() |
    print("Enter a password") |
usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
    for x in range(len(usernamelist)): |
    print("Invalid, please try again") |
    i = input() |
1 | usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
2 | while True: |
3 |     print("Enter a username") |
4 |     i = input() |
5 |     print("Enter a password") |
6 |     p = input() |
7 |     for x in range(len(usernamelist)): |
8 |         if usernamelist[x][0] == i and usernamelist[x][1] == p: |
9 |             print("Valid Login") |
10 |             exit() |
11 |     print("Invalid, please try again") |
print("Valid Login") |
usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
print("Enter a password") |
continue |
print("Enter a username") |
for x in range(len(usernamelist)): |
for x in range(len(usernamelist)): |
exit() |
t = input() |
if usernamelist[x][0] == i and usernamelist[x][1] == p: |
if restart == True: |
print("Username exists") |
else: |
restart = True |
print("Sign up or Login?") |
restart = False |
if i.lower() == "sign up": |
if usernamelist[x][0] == i: |
p = input() |
break |
while True: |
usernamelist.append([i,p]) |
i = input() |
print("Invalid, please try again") |
                print("Valid Login") |
usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
    print("Enter a password") |
            continue |
    print("Enter a username") |
        for x in range(len(usernamelist)): |
        for x in range(len(usernamelist)): |
                exit() |
    t = input() |
            if usernamelist[x][0] == i and usernamelist[x][1] == p: |
        if restart == True: |
                print("Username exists") |
    else: |
                restart = True |
    print("Sign up or Login?") |
        restart = False |
    if i.lower() == "sign up": |
            if usernamelist[x][0] == i: |
    p = input() |
                break |
while True: |
        usernamelist.append([i,p]) |
    i = input() |
        print("Invalid, please try again") |
1 | usernamelist = [["brian424","password"], ["jeffiscool","StarWaRs"], ["SirNigelBigglesworth","2Point"]] |
2 | while True: |
3 |     print("Sign up or Login?") |
4 |     t = input() |
5 |      |
6 |     print("Enter a username") |
7 |     i = input() |
8 |     print("Enter a password") |
9 |     p = input() |
10 |      |
11 |     if i.lower() == "sign up": |
12 |         restart = False |
13 |         for x in range(len(usernamelist)): |
14 |             if usernamelist[x][0] == i: |
15 |                 print("Username exists") |
16 |                 restart = True |
17 |                 break |
18 |         if restart == True: |
19 |             continue |
20 |         usernamelist.append([i,p]) |
21 |     else: |
22 |         for x in range(len(usernamelist)): |
23 |             if usernamelist[x][0] == i and usernamelist[x][1] == p: |
24 |                 print("Valid Login") |
25 |                 exit() |
26 |         print("Invalid, please try again") |
break |
print("3) Quit") |
print("Enter an item to add") |
print("Press enter to continue") |
orders[n].append(a) |
orders = [[],[],[],[],[]] |
import replit, time |
orders[n] = [] |
while True: |
print("Table " + str(x+1)) |
print(orders[x]) |
print("Enter an option") |
a = input() |
replit.clear() |
if i == "1": |
print("2) Bill and clear a table") |
print("Price: £" + str(price)) |
price = len(orders[n]) * 2.5 |
i = input() |
n = input() |
n = int(n) - 1 |
print("Enter a table") |
for x in range(len(orders)): |
input() |
print("1) Add an item to the table") |
if i == 3: |
elif i == "2": |
replit.clear() |
print() |
        break |
    print("3) Quit") |
        print("Enter an item to add") |
    print("Press enter to continue") |
        orders[n].append(a) |
orders = [[],[],[],[],[]] |
import replit, time |
        orders[n] = [] |
while True: |
        print("Table " + str(x+1)) |
        print(orders[x]) |
    print("Enter an option") |
        a = input() |
    replit.clear() |
    if i == "1": |
    print("2) Bill and clear a table") |
        print("Price: £" + str(price)) |
        price = len(orders[n]) * 2.5 |
    i = input() |
    n = input() |
    n = int(n) - 1 |
    print("Enter a table") |
    for x in range(len(orders)): |
    input() |
    print("1) Add an item to the table") |
    if i == 3: |
    elif i == "2": |
    replit.clear() |
    print() |
1 | import replit, time |
2 | orders = [[],[],[],[],[]] |
3 | while True: |
4 |     for x in range(len(orders)): |
5 |         print("Table " + str(x+1)) |
6 |         print(orders[x]) |
7 |     print() |
8 |     print("1) Add an item to the table") |
9 |     print("2) Bill and clear a table") |
10 |     print("3) Quit") |
11 |     print("Enter an option") |
12 |     i = input() |
13 |     if i == 3: |
14 |         break |
15 |     replit.clear() |
16 |     print("Enter a table") |
17 |     n = input() |
18 |     n = int(n) - 1 |
19 |     if i == "1": |
20 |         print("Enter an item to add") |
21 |         a = input() |
22 |         orders[n].append(a) |
23 |     elif i == "2": |
24 |         price = len(orders[n]) * 2.5 |
25 |         print("Price: £" + str(price)) |
26 |         orders[n] = [] |
27 |     print("Press enter to continue") |
28 |     input() |
29 |     replit.clear() |
arr[x].append(n) |
if found == False: |
arr = [["Emma"],["Jerome"],["Chloe"]] |
print(arr) |
print("Enter a name") |
while True: |
for x in range(len(arr)): |
found = True |
print("Enter a number") |
n = input() |
if arr[x][0] == i: |
i = input() |
found = False |
arr.append([i,n]) |
            arr[x].append(n) |
    if found == False: |
arr = [["Emma"],["Jerome"],["Chloe"]] |
    print(arr) |
    print("Enter a name") |
while True: |
    for x in range(len(arr)): |
            found = True |
    print("Enter a number") |
    n = input() |
        if arr[x][0] == i: |
    i = input() |
    found = False |
        arr.append([i,n]) |
1 | arr = [["Emma"],["Jerome"],["Chloe"]] |
2 | while True: |
3 |     print("Enter a name") |
4 |     i = input() |
5 |     print("Enter a number") |
6 |     n = input() |
7 |     found = False |
8 |     for x in range(len(arr)): |
9 |         if arr[x][0] == i: |
10 |             arr[x].append(n) |
11 |             found = True |
12 |     if found == False: |
13 |         arr.append([i,n]) |
14 |     print(arr) |
if len(sArr) > 0: |
bigArr = [] |
if len(sArr) == 3: |
sArr = [] |
for x in range(len(oneDimention)): |
bigArr.append(sArr) |
sArr = [] |
print(bigArr) |
bigArr.append(sArr) |
sArr.append(oneDimention[x]) |
oneDimention = [5,7,4,1,2,3,56,76,8,67,6,5,2,13,52,1] |
if len(sArr) > 0: |
bigArr = [] |
    if len(sArr) == 3: |
        sArr = [] |
for x in range(len(oneDimention)): |
    bigArr.append(sArr) |
sArr = [] |
print(bigArr) |
        bigArr.append(sArr) |
    sArr.append(oneDimention[x]) |
oneDimention = [5,7,4,1,2,3,56,76,8,67,6,5,2,13,52,1] |
1 | oneDimention = [5,7,4,1,2,3,56,76,8,67,6,5,2,13,52,1] |
2 | bigArr = [] |
3 | sArr = [] |
4 | for x in range(len(oneDimention)): |
5 |     sArr.append(oneDimention[x]) |
6 |     if len(sArr) == 3: |
7 |         bigArr.append(sArr) |
8 |         sArr = [] |
9 | if len(sArr) > 0: |
10 |     bigArr.append(sArr) |
11 | print(bigArr) |
elif i == "A": |
cx = cx - 1 |
for x in range(len(maze)): |
oy = cy #Stores the original incase the move is invalid |
replit.clear() |
cx = ox |
i = input().upper() |
cx = x |
["#","C","#"," "," "," ","#"], |
cy = cy -1 |
["#","#"," "," ","#"," ","#"], |
cy = -1 |
maze[cx][cy] = "C" |
if i == "W": |
import replit |
else: |
maze = [ |
maze[ox][oy] = " " |
cy = oy |
print(" ".join(maze[x])) |
while True: |
["#"," "," ","#"," "," ","#"], |
["#","#","#","#","#","#","#"], |
if maze[cx][cy] == "@": |
cx = -1 |
cy = y |
cy = cy + 1 |
exit() |
cx = cx + 1 |
print("Enter a direction W/A/S/D") |
elif maze[cx][cy] != "#": |
["#","#"," ","#","#"," ","#"], |
ox = cx #Stores the original incase the move is invalid |
if maze[x][y] == "C": |
for x in range(len(maze)): |
["#","#","#","#","#","@","#"]] |
for y in range(len(maze[x])): |
elif i == "D": |
elif i == "S": |
["#"," "," "," ","#"," ","#"], |
print("You win!") |
["#"," ","#"," ","#"," ","#"], |
["#"," ","#"," "," "," ","#"], |
    elif i == "A": |
        cx = cx - 1 |
    for x in range(len(maze)): |
    oy = cy #Stores the original incase the move is invalid |
    replit.clear() |
        cx = ox |
    i = input().upper() |
            cx = x |
["#","C","#"," "," "," ","#"], |
        cy = cy -1 |
["#","#"," "," ","#"," ","#"], |
cy = -1 |
        maze[cx][cy] = "C" |
    if i == "W": |
import replit |
    else: |
maze = [ |
        maze[ox][oy] = " " |
        cy = oy |
        print(" ".join(maze[x])) |
while True: |
["#"," "," ","#"," "," ","#"], |
["#","#","#","#","#","#","#"], |
    if maze[cx][cy] == "@": |
cx = -1 |
            cy = y |
        cy = cy + 1 |
        exit() |
        cx = cx + 1 |
    print("Enter a direction W/A/S/D") |
    elif maze[cx][cy] != "#": |
["#","#"," ","#","#"," ","#"], |
    ox = cx #Stores the original incase the move is invalid |
        if maze[x][y] == "C": |
for x in range(len(maze)): |
["#","#","#","#","#","@","#"]] |
    for y in range(len(maze[x])): |
    elif i == "D": |
    elif i == "S": |
["#"," "," "," ","#"," ","#"], |
        print("You win!") |
["#"," ","#"," ","#"," ","#"], |
["#"," ","#"," "," "," ","#"], |
1 | import replit |
2 | maze = [ |
3 | ["#","#","#","#","#","#","#"], |
4 | ["#","C","#"," "," "," ","#"], |
5 | ["#"," ","#"," ","#"," ","#"], |
6 | ["#"," ","#"," "," "," ","#"], |
7 | ["#"," "," "," ","#"," ","#"], |
8 | ["#","#"," ","#","#"," ","#"], |
9 | ["#"," "," ","#"," "," ","#"], |
10 | ["#","#"," "," ","#"," ","#"], |
11 | ["#","#","#","#","#","@","#"]] |
12 | |
13 | cx = -1 |
14 | cy = -1 |
15 | for x in range(len(maze)): |
16 |     for y in range(len(maze[x])): |
17 |         if maze[x][y] == "C": |
18 |             cx = x |
19 |             cy = y |
20 | |
21 | while True: |
22 |     for x in range(len(maze)): |
23 |         print(" ".join(maze[x])) |
24 |     print("Enter a direction W/A/S/D") |
25 |     i = input().upper() |
26 |     ox = cx #Stores the original incase the move is invalid |
27 |     oy = cy #Stores the original incase the move is invalid |
28 |     if i == "W": |
29 |         cx = cx - 1 |
30 |     elif i == "A": |
31 |         cy = cy -1 |
32 |     elif i == "S": |
33 |         cx = cx + 1 |
34 |     elif i == "D": |
35 |         cy = cy + 1 |
36 |     if maze[cx][cy] == "@": |
37 |         print("You win!") |
38 |         exit() |
39 |     elif maze[cx][cy] != "#": |
40 |         maze[ox][oy] = " " |
41 |         maze[cx][cy] = "C" |
42 |     else: |
43 |         cx = ox |
44 |         cy = oy |
45 |     replit.clear() |
46 |          |